package org.javaforever.cookieshop.service;

import java.util.List;
import org.javaforever.cookieshop.domain.PermissionBean;

public interface PermissionService{
	public List<PermissionBean> listAllPermissions() throws Exception;
	public Boolean updatePermission(PermissionBean permission) throws Exception;
	public Boolean deletePermission(Long id) throws Exception;
	public Boolean addPermission(PermissionBean permission) throws Exception;
	public boolean softDeletePermission(Long id) throws Exception;
	public PermissionBean findPermissionById(Long id) throws Exception;
	public PermissionBean findPermissionByPermName(String permName) throws Exception;
	public List<PermissionBean> listActivePermissions() throws Exception;
	public void deleteAllPermissions(String ids) throws Exception;
	public void softDeleteAllPermissions(String ids) throws Exception;
	public Boolean togglePermission(Long id) throws Exception;
	public Boolean toggleOnePermission(Long id) throws Exception;
	public List<PermissionBean> searchPermissionsByFieldsByPage(PermissionBean permission,Integer pagesize,Integer pagenum) throws Exception;
	public Boolean activatePermission(Long id) throws Exception;
	public void activateAllPermissions(String ids) throws Exception;
	public List<PermissionBean> searchPermissionsByFields(PermissionBean permission) throws Exception;
	public Boolean clonePermission(Long id) throws Exception;
	public void cloneAllPermissions(String ids) throws Exception;
	public Integer countSearchPermissionsByFieldsRecords(PermissionBean permission) throws Exception;
	public Integer countActivePermissionRecords() throws Exception;
}
